package DBLayer;

import java.util.ArrayList;

import ModelLayer.*;

public interface IFDBMaterial 
{
	//get on material by id
	public Material findMaterialId(String idMaterial, boolean retrieveAssociation);
	
	//get a list of all Materials
	public ArrayList<Material> getAllMaterials(boolean retrieveAssociation);
	
	// insert a new material
	public int insertMaterial(Material mat) throws Exception;
	
	//update a material
	public int updateMaterial(Material mat);
	
	//delete a material
	public int deleteMaterial(String idMaterial);
}
